Skip to content

Let hosts send the visitor's reply email as HTML: 1.9.0 - #15

Merged
yshmarov merged 1 commit into
mainfrom
html-reply-email
Dec 4, 2026
Merged

yshmarov merged 1 commit into
mainfrom
html-reply-email

Conversation

@yshmarov

@yshmarov yshmarov commented Dec 4, 2026

Copy link
Copy Markdown
Owner

A host whose customer email is branded had the chat reply as the one plain message among them, and had to patch the mailer to change it. config.mailer_layout = "mailer" now gives the visitor's reply email an HTML part rendered inside that host layout, next to the unchanged plain text.

  • Opt-in: with no layout set, the email stays exactly as it is.
  • The team's email stays plain text either way.
  • Message bodies are escaped, and only the chat link is a link.

Also dates the 1.8.1 changelog section, which shipped still headed "Unreleased".

A host whose customer email is branded had the chat reply as the one plain
message among them, and had to patch the mailer to change it. Naming a mail
layout in config.mailer_layout now gives the reply email an HTML part rendered
inside it, next to the unchanged plain text.

It stays opt-in, so no host's email changes on upgrade, and it covers only the
visitor's email: the team's is an internal nudge and stays plain text. Message
bodies are escaped and only the chat link is a link, so a URL typed into the
chat does not become a link in mail sent under the host's name. The layout has
to render without a request, as any Action Mailer layout does.
@yshmarov
yshmarov merged commit c06decb into main Dec 4, 2026
22 checks passed
@yshmarov
yshmarov deleted the html-reply-email branch December 4, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant